package com.threeonemeeting.activity;

import android.content.Intent;
import android.os.Bundle;

import com.threeonemeeting.DataCenter;
import com.threeonemeeting.tab.MultiActivityTab;

public class TabMyMeetingActivity extends MultiActivityTab {

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);

		// 添加Activity
		addActivity("MainMy31Activity",
				new Intent(this, MainMy31Activity.class));

		// 我收藏的会议
		addActivity("MyFavedMeetingActivity", new Intent(this,
				MyFavedMeetingActivity.class));

		// 我参加的会议
		addActivity("MyJoinedMeetingActivity", new Intent(this,
				MyJoinedMeetingActivity.class));

		// 我发布的会议
		addActivity("MyPubMeetingActivity", new Intent(this,
				MyPubMeetingActivity.class));

		// 我订阅的会议
		addActivity("MySubedMeetingActivity", new Intent(this,
				MySubedMeetingActivity.class));

		// 登录
		addActivity("LoginActivity", new Intent(this, LoginActivity.class));

		// 注册
		addActivity("RegisterActivity",
				new Intent(this, RegisterActivity.class));

		// 31会议快讯
		addActivity("MeetingExpressListActivity", new Intent(this,
				MeetingExpressListActivity.class));

		// 会议列表页
		addActivity("MeetingDetailActivity", new Intent(this,
				MeetingDetailActivity.class));

		// 会议资料文档
		addActivity("MeetingDataListActivity", new Intent(this,
				MeetingDataListActivity.class));

		// 会议评论文档
		addActivity("MeetingCommentsListActivity", new Intent(this,
				MeetingCommentsListActivity.class));

		// 会议明细
		addActivity("MeetingCommentDetailActivity", new Intent(this,
				MeetingCommentDetailActivity.class));

		// 发表评论
		addActivity("SendCommentActivity", new Intent(this,
				SendCommentActivity.class));

		// 报名用户列表
		addActivity("EnrollUserListActivity", new Intent(this,
				EnrollUserListActivity.class));

		// 报名用户明细
		addActivity("EnrollUserDetailActivity", new Intent(this,
				EnrollUserDetailActivity.class));

		// 下载
		addActivity("DownloadActivity",
				new Intent(this, DownloadActivity.class));

		// 附近的会议
		addActivity("NearByMeetingListActivity", new Intent(this,
				NearByMeetingListActivity.class));

		// 报名
		addActivity("EnrollMeetingActivity", new Intent(this,
				EnrollMeetingActivity.class));

		// 分享
		addActivity("ShareMeetingActivity", new Intent(this,
				ShareMeetingActivity.class));

		if (DataCenter.getInstance().currentLoginUserInfo.nUserId == 0) {

			Bundle b = new Bundle();
			b.putString("jumpto", "MainMy31Activity");
			setCurrentTab("MainMy31Activity", "LoginActivity", b);
		} else {
			setCurrentTab("MainMy31Activity");
		}
	}

}
